import styled from 'styled-components';

export const PlayerbarListItemWrapper = styled.div`
  height: 30px;
  width: 100%;
  &:hover {
    background-color: rgba(0, 0, 0, 0.4);
    .ctrl {
      visibility: visible;
    }
  }
  > div {
    float: left;
    padding-left: 10px;
    height: 28px;
    line-height: 28px;
    overflow: hidden;
    cursor: pointer;
  }
  .play {
    width: 10px;
  }
  &.play_active {
    background-color: rgba(0, 0, 0, 0.3);
    .play > div {
      margin-top: 8px;
      width: 10px;
      height: 13px;
      background-position: -182px 0;
      background-position: -182px 0;
    }
  }
  .name {
    width: 236px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ccc;
  }
  .ctrl {
    width: 100px;
    position: relative;
    visibility: hidden;
    &:hover {
      visibility: visible;
    }
    > i {
      float: left;
      height: 16px;
      overflow: hidden;
      margin: 7px 10px 0 0px;
      text-indent: -9999px;
    }
    .like {
      width: 16px;
      background-position: -24px 0;
      &:hover {
        background-position: -24px -20px;
      }
    }
    .share {
      width: 14px;
      background-position: 0 0;
      &:hover {
        background-position: 0 -20px;
      }
    }
    .download {
      width: 14px;
      background-position: -57px -50px;
      &:hover {
        background-position: -80px -50px;
      }
    }
    .delete {
      background-position: -51px 0;
      width: 13px;
      &:hover {
        background-position: -51px -20px;
      }
    }
  }
  .author {
    width: 70px;
    > a {
      color: #fff;
    }
  }
  .time {
    width: 35px;
    color: #fff;
  }
  .from {
    width: 37px;
    padding-left: 6px;
    > a {
      display: inline-block;
      width: 14px;
      height: 16px;
      margin: 7px 0 0 10px;
      background-position: -80px 0px;
      &:hover {
        background-position: -80px -20px;
      }
    }
  }
`;
